<admintpl file="header"/>
</head>
<body>
	<div><br><br>
		<form class="form-horizontal js-ajax-form" action="{:U('store/add_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
				<div class="control-group">
					<label class="control-label">{:L('NUM')}</label>
					<div class="controls">
						<input type="text" name="goods_name" value="" id="goods_name"/>
						<span class="form-required">*</span>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
            	<div class="btn btn-primary" id="save_areabtn">保存</div>
            	<a class="btn" id="js-dialog-close">关闭</a>
            </div>
		</form>
	</div>
    <script type="text/javascript">
		$("#save_areabtn").click(function(){
			$.post($("form").attr("action"), $("form").serialize(), function(result){
				if(result.state=="success"){
					$('#js-dialog-close').click();
				}else{
					alert(result.info);
				}
			})
		})
    </script>
</body>
</html>